package com.xy.biz.uc.domain.req;

import com.xy.lang.validation.annotation.AlertMessage;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @Author wwj
 * @Date 2021/3/4
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class SearchUserRequest {
    //@NotNull(message = "pageIndexRequired")
    @AlertMessage(code = "pageIndexRequired", msg = "页索引不能为空")
    private Integer pageIndex;

    //@NotNull(message = "pageSizeRequired")
    @AlertMessage(code = "pageSizeRequired", msg = "页大小不能为空")
    private Integer pageSize;

    /**
     * @author Greekn Zhang
     * @date 2021/5/10 15:00
     * @description 区分根据 部门0/角色1 查询
     */
    private Integer type;
    /**
     * 用户状态
     */
    private Integer status;

    /**
     * @author Greekn Zhang
     * @date 2021/5/10 15:22
     * @description 根据分类的部门Id/角色Id
     */
    private Long id;

    /**
     * 可能的用户名字
     */
    private String userName;

}
